package com.veer.shop.param;

import java.util.Map;

import com.veer.shop.utils.DateTimeUtil;

/**
 * 素材列表参数 实体类
 * 
 * @author WangBin
 * 2020年10月6日-下午12:15:34
 */
public class MaterialsParam {
	private String material_name;
	private String material_type;
	private Integer category_id;
	private String created_at;
	private String begin_at = "";
	private String end_at = "";
	private Integer store_id = 0;
	public Integer getStoreId() {
		return store_id;
	}
	public void setStoreId(Integer storeId) {
		this.store_id = storeId;
	}
	public String getBeginAt() {
		return begin_at;
	}
	public void setBeginAt(String begin_at) {
		this.begin_at = begin_at;
	}
	public String getEnd_at() {
		return end_at;
	}
	public void setEnd_at(String end_at) {
		this.end_at = end_at;
	}
	public Integer getCategoryId() {
		return category_id;
	}
	public void setCategoryId(Integer category_id) {
		this.category_id = category_id;
	}
	public String getMaterialName() {
		return material_name;
	}
	public void setMaterialName(String material_name) {
		this.material_name = material_name;
	}
	public String getMaterialType() {
		return material_type;
	}
	public void setMaterialType(String material_type) {
		this.material_type = material_type;
	}
	public String getCreatedAt() {
		return created_at;
	}
	public void setCreatedAt(String created_at) {
		// 这里需要预处理时间区间
		Map<String, String> createdAtRange = DateTimeUtil.parseCreatedAtRange(created_at);
		this.begin_at = createdAtRange.get("begin_at");
		this.end_at = createdAtRange.get("end_at");
		this.created_at = created_at;
	}
}
